ACFWF\Models\Objects\BOGO\Calculation B

Total Complexity 91
Dependencies 3
Dependents 1
Total lines 840
Lines of code 332
Logical lines of code 153
Comment lines 409
Methods 32
Properties 11

Methods 32

Method Rating Maintainability Complexity Lines of code
verify_triggers()
A
47 9 36
__construct()
A
52 8 25
append_entry()
S
57 8 15
verify_deals()
S
49 6 32
is_calculated_from_session()
S
59 7 13
update_entry()
S
59 7 13
get_sorted_cart_items_by_price()
S
51 5 28
get_all_entries()
S
61 5 13
process_allowed_deals_data()
S
59 3 16
get_entries_by_cart_item()
S
63 3 11
get_cart_session_hash()
S
55 2 22
calculate_cart_item_spare_quantity()
S
64 3 9
clear_temp_entries()
S
63 2 12
confirm_matched_triggers()
S
74 2 5
get_instance()
S
71 2 6
get_entries_by_id_and_coupon()
S
67 2 8
get_entries_by_coupon()
S
67 2 8
is_calculation_done()
S
82 1 3
done_calculation()
S
81 1 3
_generate_entry_key()
S
74 1 4
_get_bogo_deal_for_coupon()
S
80 1 3
set_bogo_deal()
S
76 1 4
add_notice()
S
69 1 7
get_bogo_coupon_codes()
S
82 1 3
get_bogo_coupon_code()
S
82 1 3
get_bogo_deal()
S
82 1 3
get_all_bogo_deals()
S
82 1 3
get_current_bogo_deal()
S
74 1 4
get_notices()
S
82 1 3
clear_session_data()
S
75 1 4
set_session_data()
S
65 1 10
is_item_valid()
S
79 1 3